package com.sky.controller.admin;

import com.sky.result.Result;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/admin/common")
@RestController
@Api(tags = "通用接口")
public class CommonController {

    // 模拟文件上传接口，仅返回固定图片路径，不处理实际文件
    @PostMapping("/upload")
    public Result<String> fakeUpload() {
        // 直接返回一个固定路径，与DishController中一致
        return Result.success("test-image");
    }
}
